//
// Created by ta&to on 2022/8/22.
//

#ifndef HTTPSERVER_ARCH_CONFIG_H
#define HTTPSERVER_ARCH_CONFIG_H

#define isnodeequare(n1, n2) ((ISNULL(n1) || ISNULL(n2))?FALSE:(isequare(n1->key, n2->key)))
#define isequare(s1, s2) ((ISNOTNULL(s1) && ISNOTNULL(s2)) && ((hashcmp(s1, s2) == 0) || s1 == s2)) ? TRUE:FALSE

#define PLATFORM_LINUX	 1 //默认Linux平台

#if defined(WIN32) || defined(_WIN32) || defined(_WIN32_) || defined(WIN64) || defined(_WIN64) || defined(_WIN64_)
#define PLATFORM_WINDOWS 1
#elif defined(ANDROID) || defined(_ANDROID_)
#define PLATFORM_ANDROID 1
#elif defined(__linux__)
#define PLATFORM_LINUX	 1
#elif defined(__APPLE__) || defined(TARGET_OS_IPHONE) || defined(TARGET_IPHONE_SIMULATOR) || defined(TARGET_OS_MAC)
#define PLATFORM_IOS	 1
#else
#define PLATFORM_UNKNOWN 1
#endif

#endif //HTTPSERVER_ARCH_CONFIG_H
